package com.mathdroid.model.abilities.specs.sniper;

import com.mathdroid.model.abilities.Ability;
import com.mathdroid.model.enums.EDmgType;

public final class EMPDischarge extends Ability {

	/**
	 * Generated UID.
	 */
	private static final long serialVersionUID = 4862498775895773970L;

	public EMPDischarge() {
		this.setName("EMP Discharge");
		this.setRequiredTalent("EMP Discharge");
		this.setIconName("detonateprobe");
		this.setResource("Energy");
		this.setCooldownMs(60000d);
		this.setDirectDamageType(EDmgType.ENERGY);
		this.setStandardHealthPercentMax(0.13);
		this.setStandardHealthPercentMin(0.07);
		this.setCoefficient(1d);
		
		this.setTrainableLevel(30);
	}
	
	@Override
	public String getDescription() {
		return "Discharges an electromagnetic pulse from an active " +
			"Interrogation Probe on the target, immediately dealing "
			+ this.getMinDirect() + " - " + this.getMaxDirect() 
			+ " energy damage to the affected target. " +
			"Also immediately finishes the cooldown on Adrenaline " +
			"Probe and Shield Probe.";
	}

	@Override
	public double getMinPeriodic() {
		return 0d;
	}

	@Override
	public double getMaxPeriodic() {
		return 0d;
	}

	@Override
	public double getMinDirect() {
		return
			this.getCoefficient() 
			* this.getCharStats().getTotalBonusDamageTechForce()
		
			+ this.getStandardHealthPercentMin() 
			* this.getStdDmg();
	}

	@Override
	public double getMaxDirect() {
		return
			this.getCoefficient() 
			* this.getCharStats().getTotalBonusDamageTechForce()
		
			+ this.getStandardHealthPercentMax() 
			* this.getStdDmg();
	}

}
